package cn.dlc.com.system.department.entity;

import cn.dlc.com.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_department")
public class Department extends BaseEntity {

    /**
     * id
     */
    @TableId("sys_department_id")
    private String departmentId;

    /**
     * 名称
     */
    @TableField("name")
    private String name;

    /**
     * 部门位置
     */
    @TableField("department_part")
    private String departmentPart;

    /**
     * 门号
     */
    @TableField("door_number")
    private String doorNumber;

    /**
     * 部门类型
     */
    @TableField("type")
    private String type;

    /**
     * 部门编码
     */
    @TableField("department_code")
    private String departmentCode;

    /**
     * 上级部门id
     */
    @TableField("parent_id")
    private String parentId;

    /**
     * 排序
     */
    @TableField("sort")
    private int sort;
}
